'use strict';

stareal
    .controller("Sign1Controller", function ($scope, $stateParams, $api, $sce, base64, $state, $alert,localStorageService) {
        var ua = navigator.userAgent.toLowerCase();
        var shareInfo= "http://activity.m.duiba.com.cn/share/activityShareReal?id=2153538&appId=2|http://yun.duiba.com.cn/images/201704/d76a5d0m93.jpg|明星小可爱 萌萌邦尼兔|www"
        $('#btn').on('click',function(){
             if(/iphone|ipad|ipod/.test(ua)) {
                 window.webkit.messageHandlers.share.postMessage(shareInfo)
             }else{
                 share.showToast(shareInfo)
            }
             // window.webkit.messageHandlers.share.postMessage("111111")
         })
    });